<?php

session_start();

require_once '../../../serverResources/includes/classes/Areply.php';
require_once '../../../serverResources/includes/db/ConnDBUser.php';

include_once '../others/refreshSessionTime.php';
$usrID=$_SESSION['userID'];
$reply=$_POST['reply'];
$reply=addslashes($reply);
$commentID=$_POST['commentID'];

if($reply != ""){

	$rep=new AReply($reply, $commentID, $usrID);
	$rep->storeReply();
	unset($rep);

	echo $rep;
}
